﻿namespace Generator
{
    public class KeyFlow
    {
        public bool On;
        public bool IncludePrevWeek;
        public OpenersClosers[] Days { get; private set; }

        /// <summary>
        /// actual keyflow (somewhere between 0 and Maximum inclusive)
        /// </summary>
        public byte Value;
        /// <summary>
        /// maximum possible keyflow (7 if previous week is IsTaken into consideration, 6 if not)
        /// </summary>
        public byte Maximum;

        public KeyFlow()
        {
            Days = new OpenersClosers[7];
            for (var i = 0; i < 7; i++)
            {
                Days[i] = new OpenersClosers();
            }
        }
    }
}
